﻿@model FPP.Models.FamousPerson
@{
    ViewBag.Title = "Edit";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Edit for @Model.DisplayName</legend>
        <div id="leftCol" class="column span-6">
            <div class="display-field">
                <img alt="@Model.DisplayName" src="@Model.WikiData().ImageUrl" style="max-width: 230px" /></div>
        </div>
        @Html.HiddenFor(model => model.Id)
        <div id="rightCol" class="column clearfix">
            <h1>@Model.DisplayName</h1>
            <div class="editor-label">
                @Html.LabelFor(model => model.DisplayName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DisplayName)
                @Html.ValidationMessageFor(model => model.DisplayName)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateOfBirth)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateOfBirth)
                @Html.ValidationMessageFor(model => model.DateOfBirth)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateOfDeath)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateOfDeath)
                @Html.ValidationMessageFor(model => model.DateOfDeath)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.WikiLink)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.WikiLink)
                @Html.ValidationMessageFor(model => model.WikiLink)
            </div>
        </div>
        <p class="clear">
            <input type="submit" value="Save" />
            |
            @Html.ActionLink("Back to List", "Index")
        </p>
    </fieldset>
}
<div>
</div>
